<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>查询结果</title>
    <link href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
    <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
</head>
<body>
    <div class="container">
        <div class="raw">
            <h4 th:text="'时间:' + ${#dates.format(#dates.createNow(), 'yyyy-MM-dd ')} +''+ ${startTime} + '-' + ${endTime}"
            style="text-align: center"></h4>
        </div>
        <h4 th:if="${info.size()} == 0">未查到数据，可能是出错了</h4>
        <div th:unless="${info.size()} == 0">
            <div class="raw">
                <h4 th:text="'共查到' + ${info.size()-1} + '条数据'" class="col-xs-8"></h4>
                <a class="col-xs-3 btn btn-success" th:href="@{/get}">返回前页</a>
            </div>
            <table class="table table-bordered table-hover">
                <thead>
                <tr>
                    <th th:each="thead : ${info.get(0)}" th:text="${thead}"></th>
                </tr>
                </thead>
                <tbody>
                <tr th:each="i : ${#numbers.sequence(info.size()-1, 1, -1)}">
                    <td th:each="content : ${info.get(i)}" th:text="${content}"></td>
                </tr>
                </tbody>
            </table>
            <a class="col-xs-12 btn btn-success" th:href="@{/get}">返回前页</a>
        </div>
    </div>
</body>
</html>